package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: 请描述你的文件
 *
 * @author wuqirong
 * @date 2020-10-16
 * <p>
 * All rights Reserved, Designed www.xiao100.com
 */
@RestController
@RequestMapping("/config")
public class ConfigController {

    @Autowired
    private TestConfig testConfig;

    @GetMapping("/get")
    public String get() {
        System.out.println(testConfig);
        return testConfig.getTest();
    }

}
